package com.lijiaxing.controller;

import com.lijiaxing.pojo.Result;
import com.lijiaxing.service.codeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/get")
public class codeController {
    @Autowired
    private codeService cs;

    //发送验证码
    @PostMapping("/code")
    public Result getCode(String tel) {
        return cs.sendCode(tel);
    }
}
